import {
  createRouter,
  createWebHashHistory
} from 'vue-router'
import routerHome from '@/views/route.js'
import home from './home'
const routes = [
  // 主页路由
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue'),
    children: routerHome
  },
  ...home
  // 如果要引入另外一个路由文件要有展开运算符

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router